Part Number Hot Search : 
XC4000 SI4431 2SB817P MAX4364E RN4981FE AD677AD IR15XB06 3520E
Product Description
Full Text Search
 

To Download TRW-24C Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 1 wenshing ?? t r w - 24c rf module wireless low cost 2.4ghz hi power +19dbm rf transceiver module version history version date changes v1.01 jun 14 , 2007 1 st. edition v1.02 aug 20 , 2007 2 nd. edition v1.03 mar 15 , 2008 3 rd. edition v1.04 jan 4 , 2009 4 th. edition v1.05 jan 7 , 2010 5 th. edition
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 2 specification ? remote control systems ? wireless data transceiver ? 2.4ghz~2.483ghz ism/srd band ? remote metering ? wireless security systems ? automatic meter rea ding ? application range : remote metering wireless security systems automatic meter reading home automation application the rf transceiver is integrated with a highly configurable baseband modem. the modem supports various modulation formats and ha s a configurable data rate up to 250 kbps. the communication range can be increased by enabling a forward error correction option, which is integrated in the modem. trw - 24c provides extensive hardware support for packet handling, data buffering, burst tr ansmissions, clear channel assessment, link quality indication and wake - on - radio. the main operating parameters and the 64byte s transmit/receive fifos of trw - 24c can be controlled via an spi interface. in a typical system, the trw - 24c will be used together with a microcontroller and a few additional passive components. key feature ? small size ? separate 64byte s rx and tx data fifos ? efficient spi interface: all registers can be programmed with one "burst" transfer ? programmable output power up to +19dbm ? high se nsitivity ( - 106dbm at 10kbps, 1% packet error rate) absolute maximum rating parameter min max unit condition supply v oltage 2.7 3.3 v voltage on a ny d igital p in - 0.3 vdd+0.3 v input rf l evel +10 dbm storage t emperature r ange - 50 + 150 c esd <50 0 v according to jedec std 22, method a114, human body model
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 3 general characteristics and electrical specification parameter min typ e max unit condition/note frequency r ange 2400 2483.5 mhz data r ate 1.2k 250 bps power d own m odes 400 na voltage r egulator to digital part off, register values retained ( sleep state) current c onsumption, rx 19 ma current c onsumption, tx 90 ma transmit mode, +19dbm output power receiver s ensitivity - 106 dbm transmit o utput p ower +19 dbm transmit mode pi n assignment pin function type description 1 dr output ordinary condition is for 0, as for c 1, is to mean rf data delivers/ receives 2 cs input effective low - powered , is selective module 3 miso output read from module group contains data and configure info 4 sclk input supply clock for rf reading / writing 5 mosi input to write in module group contains data and configure info 6, 9, 10 vdd power supply is anode 7, 8 gnd power supply is cathode
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 4 size
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 5 demo circuit
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 6 time sequence explanation trw - 24c adopts spi deliver ed style, all must add address each time for trans mitting. a ddress bit 8 is direction, when is 0, then is read in data . when is 1 , then is read ou t data, the goal is in order to confirm the accuracy which reads in when disposition reads out . 1. configures time sequence explanation: form : address+ data . 2. data delivers/ receives time sequence explanation: meantime is same with the disposition , onl y the address data and write / read data are different. sends form: 0x7f+ n bytes (n< 65) . receives form : 0xff+ n bytes (n< 61) . 3. the address of data which transmits to read in is for 0x7f, a t m ost for once can read in 64 bytes data to rf . address for r ead out receive data is 0xff, a t most once can read out from rf is 64 bytes . fsclk < 6.5mhz t1 > 200us t2 > 50ns t3 > 50ns t4 > 80ns t5 > 20ns t6 > 20ns
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 7 temporary saving utensil explanation this watch as base frequently for 2410m hz , 250k channel alternation, choos es 0 channels work 2.4/10k/ 250k some reference under working speed. address 2.4k 10k 250k description component fsk fsk msk 0x0d 0x5c 0x5c 0x5c s et up trw - 24c base frequently. the base frequently is for 2410m . 0x0e 0xb1 0xb1 0xb1 0x0f 0x3b 0x3b 0x3b 0x13 0x43 0x43 0x43 13h [6:4] is precede code 0x14 0x3b 0x3b 0x3b 13h [1:0] 14h for channel alternation base frequently 0x0a 0x00 0x00 0x00 sets up for appointed channels 0x0b 0x08 0x06 0x09 0bh [3:0] if frequencys enactment 0x0c 0x00 0x00 0x00 fixation 0x10 0x86 0x78 0x2d 10h [7:4] receives bandwidth enactment 0x11 0x83 0x93 0x3b set up modular working speed 0x12 0x03 0x03 0x73 12h[7:4] choice modulation way 0x15 0x44 0x44 0x01 modulation percentage hypothesis 0x22 0x10 0x10 0x10 the corresponding speed fixed is as follows 0x21 0x56 0x56 0xb6 0x18 0x08 0x08 0x08 0x19 0x16 0x16 0x1d 0x1a 0x6c 0x6c 0x1c 0x1b 0x03 0x43 0xc7 0x1c 0x40 0x40 0x00 0x1d 0x91 0x9 1 0xb2 0x23 0xa9 0xa9 0xea 0x24 0x0a 0x0a 0x0a 0x25 0x00 0x00 0x00 0x26 0x11 0x11 0x11 0x29 0x59 0x59 0x59 0x2c 0x81 0x81 0x88 0x2d 0x35 0x35 0x31 0x2e 0x0b 0x0b 0x0b 0x08 0x05 0x05 0x05 envelop wrap control 0x02 0x06 0x06 0x06 fixation
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 8 0x00 0x1b 0x1b 0x1b 0x06 0xff 0xff 0xff when setup t he packet length, it is in the invariable situation ,the value is 0xff command value illustration command value function description 0x30 reset rf chip 0x32 close rf osc 0x33 auto - lock frequenc y . the timing is shorter than 1ms 0x34 remove receiving buffer 0x35 remove transmitting buffer 0x36 chip into static mode 0x39 chip into low power consumption mode 0x3a chip into receiving mode 0x3b chip into transmitting mode 0x7e send power setting 0x7f/0xff write - send/ read - receive data of buffer area 1. trw - 24c base frequently enactment: 0dh, 0eh, 0fh freq [23:0] = fcarrier* 2^16/26000000 one: operating freq uency for 2401mhz, then freq [23:0] = 2401000000*2^16/26000000 = 6051997= 0x5c589d then 0dh = 0x5c 0eh= 0x58 0fh = 0x9d operating frequency for 2411.5mhz, then freq [23:0] = 2411500000*2^16/26000000 = 6078464= 0x5cc000 then 0dh = 0x5c 0eh = 0xc0 0fh = 0x00 2. channel with channel's alternation frequencys enactment: 13h [1:0] 14h fchannel = 26000000* (256+ 11h [7:0])*2^10 [1:0] /2^18 if will set up channel's alternation frequency for 250k, then 14 = 0x3b, 13 [1:0] = 3; 3. channel alternation's choice: 0x0a f carrier = fbase + fchannel* 0ah [7:0] if base frequently for 2401 mhz , fchanne l =250k, 0x0a= 00 word, then current operating frequency for: 2401m hz if base frequently for 2401, fchanne = 250k, 0x0a= 04 word, then current operating frequency for: 2402m hz
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 9 4. pr ecedes code enactment: 13h [6:4] 13h [6:4] = 0 then is 2 bytes pioneer yard 13h [6:4] = 1 then is 3 bytes pioneer yard 13h [6:4] = 2 then is 4 bytes pioneer yard 13h [6:4] = 3 then is 6 bytes pioneer yard 13h [6:4] = 4 then is 8 bytes p ioneer yard 13h [6:4] = 5 then is 12 bytes pioneer yard 13h [6:4] = 6 then is 16 bytes pioneer yard 13h [6:4] = 7 then is 24 bytes pioneer yard 5. receives bandwidth enactment: 10h [7:4],parallels each worth give parallel frequency under it 10h [7:4] = 00 812k 10h [7:4] = 01 625k 10h [7:4] = 02 541k 10h [7:4] = 03 464k 10h [7:4] = 04 406k 10h [7:4] = 05 325k 10h [7:4] = 06 270k 10h [7:4] = 07 232k 10h [7:4] = 08 203k 10h [7:4] = 09 162k 10h [7:4] = 10 135k 10h [7:4] = 11 116k 10h [7:4] = 12 102k 10h [7:4] = 13 81k 10h [7:4] = 14 68k 10h [7:4] = 15 58k 6. if frequencys enactment: f if = 25390.625*0bh [3:0] for example: 2.4k working speed, 0bh [3:0] =8, then f if = 203.125khz 7. working speed's enactment: 10h [3:0] ,11h [7:0] ,beg the most approach worth: rate = (256+ 11h [7:0])*2^10h [3:0] *26000000/2^28 example: is like working speed for 2.4k, then 11h = 0x83, 10h [3:0] = 0xx6 example: is like working speed for 1.2 k, then 11h = 0x83, 10h [3:0] = 0xx5 8. modulates selecting mode: 12h [7:4] 12h [7:4] = 0, illustrate s choose 2 - fsk mode. 12h [7:4] = 1, illustrates choose msk mode. 9. modulate set up 15h a. at msk time, it worths forever all is one. b. at 2 - fsk time, it modulate s calculate formula following, beg lately worth fdev = (8+ 15h [2:0] *2^15h [6:4] *198 10. envelop wrap control 08h 08h = 0x04, illustrates envelop length is fixed, it s length worth sav ing in 06h. example: when in the 06h value is 0x70, explained a packet in the launch and receive byte is 112, needs to partition the transmission in the launch and the receiving process to be able to receive with the receive data .
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 10 launch fo rm : 0x7f+n bytes (n = 06h) 08h = 0x05, explained the packet length is invariable, its length value for the launch is the first byte data , the 06h value is 0xff . l aunch form : 0x7f+ envelops wrap length +n bytes data (n =envelops wrap length) note: a. as at launch condition time, if envelops wrap length 64, then can data read in trw - 24c by once , if envelops wrap length>64, then needs segment deliver data to trw - 2 4c, because trw - 24c only have a 64 bytes buffer . the concrete partition method is as follows : 10.1.1 the firs t is to read in 64 bytes to trw - 24c . 10.1.2 waits dr pin in high. 10.1.3 reads 0xfa the value, if reads the value is 0x10, explained in the buffer also has 16 bytes not to deliver, if reads the value is 0x20, explained in the buffer also has 32 bytes not to deliver. 10.1.4 b as es read 0xfa the value, the user may decide when transmits the material to give trw - 24c once more, but cannot read it to be equal to 0, otherwise can have the mistake 10.1.5 i f transmits the data not to deliver once more, t he data duplicates 10.1.13 and 10.1.14. b. w orks as when the receive condition, waited for its dr line turns high, if the packet length is smaller than 61, after then waited for the dr line changes lowly reads two bytes the data to come out, reads two data , preceding is the rssi value, latter is th e crc value, when latter crc value bit7 is 1, explains the packet correctly, otherwise wrong, the rssi value is has the mark the value, if reads bigger value, the explanation receive signal is better. please note: 0xff is - 1 < 0. if the packet length is bi gger than 60, then concrete reading method as follows: 10.2.1 the f irst waits for dr line turns to 1 . 10.2.2 r eads in 0xfb the value if is equal to 51, then can read out 50 bytes data from trw - 24c (the note 51,/50 to be possible to define by user, only was small er than the 0xfb in value. 10.2.3 duplicates 10.2.2, if in when reads 0xfb, its dr line turns lowly, explained this data not enough to 50 bytes, this time does not have to withdraw situation of reads 0xfb, reads out the surplus data (the note: the read - out data is more t han 2 of reality data. ) 10.2.4 after the dr line turns lowly, how to kn o w how many data must to read : in under the fixed packet condition, decided by the computation of 0x06, if supposes is n, then reads out the material is n+2 bytes. in under the invariable pack et condition, decided by the first byte value. i f receives is n, then reads out the material is n+3 bytes.
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 11 11. power enactment: as set up worth for 0xff/0xfe/0xbb/0xa9/0x7f/0x6e/0x97/0xc6/0x8d/0x55/0x93/0x46 parallel db worth for+19/ + 18/+ 16/+ 14/+ 12/+10/ + 8/+ 6/+ 4/+ 2/+ 0/ - 2dbm sets up power address for 0x7e+ 8 bytes data,8 bytes set up become same, chooses above power worth. reads set up power worth for 0xfe+ 8 bytes data, 8 bytes whether with set up become same. procedure explanation 1. heavy fix trw - 24c subprogram: reset - trw - 24c. 2. configure trw - 24c subprogram: config - trw - 24c. 3. chooses work mode: shoots mode: subprogram: trw - 24c - txmode. receives mode: subprogram: trw - 24c - rxmode. leisur es mode: subprogram: trw - 24c - tdlem ode. 4. data transference: sends data subprogram: trw - 24c - send - data. receive data subprogram: trw - 24c - receive - data. 5. other mode: sets up power subprogram: trw - 24c - set - power. low achievements consume mode subprogram: trw - 24c - lowpowermode. sample program // function // website #include < c8051f320.h > /* ************************************************************************* ** */ /* *************************************************************************** */ /* *************************************************************************** */ /* *************************************************************************** */ /* * ************************************************************************** */ const unsigned char code trw - 24c - table[ 68 ]; /* *************************************************************************** */ sbit clk = p1 ^ 1 ;
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 12 sbit miso = p1 ^ 2 ; sbit mosi = p1 ^ 3 ; sbit cs = p1 ^ 6 ; sbit dr = p1 ^ 4 ; sbit tx_led = p2 ^ 1 ; /* *************************************************************************** */ /* function name w - trw - 24c - byte */ /* functional d escription read in byte to trw - 24c */ /* input x */ /* return no */ /* *************************************************************************** */ void w - trw - 24c - byte( char x) { unsigned char i; for (i = 0 ;i < 8 ;i ++ ) { clk = 0 ; mosi = 0 ; if (x & 0x80 ) mosi = 1 ; x <<= 1 ; clk = 1 ; } clk = 0 ; } /* *************************************** ************************************ */ /* function name r - trw - 24c - byte */ /* functional d escription reads out byte from trw - 24c */ /* input no */ /* return x */ /* *************************************************************************** */ char r - trw - 24c - byte( void ) { unsigned char i,x; for (i = 0 ;i < 8 ;i ++ ) { c lk = 0 ; x <<= 1 ;
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 13 x &= 0xfe ; if (miso) x |= 0x01 ; clk = 1 ; } clk = 0 ; return (x); } /* *************************************************************************** */ /* function name config - trw - 24c - byte */ /* functional d escription disposes a byte form trw - 24c module */ . /* transfer function w - trw - 24c - byte */ /* r - trw - 24c - byte */ /* function instruction when the seventh of address is 1, reads its value */ /* function description disposes one of bytes from trw - 24c * /* input address */ /* return c_data */ /* * ************************************************************************** */ char config - trw - 24c - byte( char address, char c_data) { cs = 0 ; while (miso); // to j udge miso if the low level, otherwise wait for turn ing to the low level to se cede . miso ? ? t????? w - trw - 24c - byte(address); if (address & 0x80 ) c_data = r - trw - 24c - byte(); else w - trw - 24c - byte(c_data); cs = 1 ; return (c_data); } /* *************************************************************************** */ /* function name reset - trw - 24c */ /* f unctional description replacement trw - 24c */ /* transfer function w - trw - 24c - byte */ /* input no */ /* return no */ /* *************************************************************************** */ void reset - trw - 24c( void )
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 14 { unsigned char i; cs = 1 ; for (i = 0 ;i < 100 ;i ++ ); cs = 0 ; for (i = 0 ;i < 200 ;i ++ ); cs = 1 ; for (i = 0 ;i < 200 ;i ++ ); cs = 0 ; while (miso); // to j udge miso if the low level, otherwise wait for turn ing to low level to se cede . w - trw - 24c - byte( 0x30 ); cs = 1 ; } /* ******************************************* ******************************** */ /* function name trw - 24c - set - power */ /* function description set up the trw - 24c module power */ /* transfer function w - trw - 24c - byte */ /* function i nstruction w rites 8 bytes data at one time. */ /* input x */ /* return no */ /* ************************************* ************************************** */ void trw - 24c - set - power( char x) { unsigned char i; cs = 0 ; while (miso); w_trw_24c_byte( 0x7e ); for (i = 0 ;i < 8 ;i ++ ) w_trw_24c_byte(x); cs = 1 ; } /* ************************************************************************ *** */ /* function name config - trw - 24c */ /* function description set up trw - 24c */ /* transfer function config - trw - 24c - byte */ /* : w - trw - 24c - byte /* input no */ /* return no */
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 15 /* *************************************************************************** */ void config - trw - 2 4c( void ) { unsigned char i,x; do { for (i = 0 ;i < 68 ;) config - trw - 24c - byte(trw - 24c - table[i ++ ],trw - 24c - table[i ++ ]); trw - 24c - set - power( 0xff ); // set up the highest - power ed launch cs = 0 ; while (miso); w - trw - 24c - byte( 0x33 ); cs = 1 ; cs = 0 ; while (miso); w - trw - 24 c - byte( 0x37 ); cs = 1 ; for (i = 0 ;i < 200 ;i ++ ); i = config - trw - 24c - byte( 0x 80 ,x); } while (i != 0x1b ); } /* *************************************************************************** */ /* function name trw - 24c - txmode */ /* function description set up trw - 24c work in launch pattern */ /* function instruction this function may cause trw - 24c directly to cut the launch pattern from the receive pattern or the idle mode /* transfer function w - trw - 24c - byte */ /* input no */ /* return no */ /* *************************************************************************** */ void trw - 24c - txmode( void ) { cs = 0 ; while (miso); w - trw - 24c - byte( 0x36 ); cs = 1 ;
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 16 cs = 0 ; while (miso); w - trw - 24c - byte( 0x3b ); cs = 1 ; cs = 0 ; whil e (miso); w - trw - 24c - byte( 0x35 ); cs = 1 ; } /* *************************************************************************** */ /* function name trw - 24c - rxmode */ /* function description set up trw - 24c work in receive pattern */ /* function instruction this fun ction may cause trw - 24c module directly to cut the launch pattern from the pattern or the launch pattern ?? trw - 24c ?M ???l??l?? ?l?? */ /* transfer function w - trw - 24c - byte */ /* input no */ /* return no */ /* *************************************** ************************************ */ void trw - 24c - rxmode( void ) { cs = 0 ; while (miso); w - trw - 24c - byte( 0x36 ); cs = 1 ; cs = 0 ; while (miso); w - trw - 24c - byte( 0x3a ); cs = 1 ; cs = 0 ; while (miso); w - trw - 24c - byte( 0x34 ); cs = 1 ; } /* **************************** *********************************************** */
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 17 /* function name trw - 24c - idlemode */ /* function description set up the trw - 24c module work s in the idle mode / /* function instruction this function may cause trw - 24c module directly to cut the idle mode from the launch pattern or the receive pattern, the applica tive sit uation belongs to not receive, but requests fast to return to the launch or the receive condition /* transfer function w - trw - 24c - byte */ /* input no */ /* return no */ /* *************************************************************************** */ void t rw - 24c - idlemode( void ) { cs = 0 ; while (miso); w - trw - 24c - byte( 0x36 ); cs = 1 ; } /* *************************************************************************** */ void send_fifo_pointer( void ) { unsigned char i; while (config - trw - 24c - byte( 0xfa , 0x00 ) > 0x10 ) for (i = 0 ;i < 200 ;i ++ ); } /* *************************************************************************** */ /* function trw - 24c - send - data */ /* function description transmite trw - 24c data */ /* function description fixed send data 88h, in the sending process, as far as possible avoids disposable many bytes the material is 0x00,0xff, otherwise receives has the mistake or can t receive . /* transfer function w - trw - 24c - byte */ /* input r efers to how many bytes does one pack et need , the example for take the invariable packet , very pack et is under the 110 byte. /* return no */ /* ************************************************* ************************** */ void trw - 24c - send - data( unsigned char x) { unsigned char i; trw - 24c - txmode();
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 18 cs = 0 ; while (miso); w - trw - 24c - byte( 0x7f ); w - trw - 24c - byte(x); if (x < 65 ) { for (i = 0 ;i < x;i ++ ) w - trw - 24c - byte( 0x88 ); // transmits 88h data cs = 1 ; } else { for (i = 0 ;i < 60 ;i ++ ) w - trw - 24c - byte( 0x88 ); // transmits 88h data cs = 1 ; while ( ! dr); send_fifo_pointer(); cs = 0 ; while (miso); w - trw - 24c - byte( 0x7f ); for (i = 0 ;i < (x - 60 );i ++ ) w - trw - 24c - byte( 0x88 ); // transmits 88h data cs = 1 ; } while ( ! dr); // the waiting laun ch completes, after the launch completes, automatically enters the idle pattern, after if transmits wants to enter the receive pattern, writes trw - 24c - rxmode () the function } /* *************************************************************************** */ /* function name receive_fifo_pointer */ /* f un ction description reads the trw - 24c receiv ing data index , when receives 51 data , exit it . */ /* transfer function w - trw - 24c - byte */ /* i nput no */ /* return 0 , to explain receive conclusion before not to 50 bytes data */ /* return 1 , to explain has received 50 byte data. */ /* *************************************************************************** */ unsigned char receive_fifo_pointer( void ) {
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 19 unsigned char i = 0 ; while (config - trw - 24c - byte( 0xfb , 0x00 ) < 5 1 ) { tx_led = ~tx_led; for (i = 0 ;i < 200 ;i ++ ) if ( ! dr) i = 210 ; if (i == 211 ) break ; // return to while sentence } if (i == 211 ) return ( 0 ); else return ( 1 ); } /* *************************************************************************** */ /* function name trw - 24c - re ceive - data */ /* function description trw - 24c can receive data */ /* function instruction the example for the invariable package ?? */ /* transfer function w - trw - 24c - byte */ /* input no */ /* return 0 , to explain not receiv e data */ /* return 1 , to explain has received error data */ /* return 2 , to explain has received correct data. */ /* *************************************************************************** */ char trw - 24c - receive - data( void ) { unsigned char i = 0 , x = 0 ,y = 0 ,z,crc_value; unsi gned char xdata rf_buffer[ 100 ],rf_p ointer = 0 ; while (dr) { if (receive_fifo_pointer()) { x ++ ; cs = 0 ; while (miso); w - trw - 24c - byte( 0xff ); i = 0 ; if (x == 0 )
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 20 { rf_pointer = 0 ; y = r_trw - 24c_byte(); y ++ ; // when receiv ing data , must be more than two in actual l aunch data . the preceding is the rssi value i ++ ; // latter one bit7 is the crc value, if crc is correct, then bit7 = 1, otherwise is 0 . rf_buffer[rf_point er ++ ] = y - 1 ; } for (;i < 50 ;i ++ ) rf_buffer[rf_point er ++ ] = r_trw_24c_byte(); cs = 1 ; z = y - 50 ; } else { cs = 0 ; while (miso); w_trw_24c_byte( 0xff ); if (x == 0 ) { rf_pointer = 0 ; y = r_trw_24c_byte(); y ++ ; rf_buffer[rf_point er ++ ] = y - 1 ; for (i = 0 ;i < y;i ++ ) rf_buffer[rf_point er ++ ] = r_trw_24c_byte(); } else { for (i = 0 ;i < z;i ++ ) rf_buffer[rf_point er ++ ] = r_trw_24c_byt e(); } crc_value = r_trw_24c_byte(); rf_buffer[rf_point er ++ ] = crc_value; cs = 1 ; z = 0x7f ; } }
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 21 if (z == 0x7f ) { if (crc_value & 0x80 ) return ( 2 ); else return ( 1 ); } else return ( 0 ); } /* *************************************************************************** */ /* function name trw - 24c - lowpowermode */ /* function description trw - 24c work in the low - power ed losing condition */ /* transfer function w - trw - 24c - byte */ /* input no */ /* return no */ /* ************************************************************* ************** */ void trw - 24c_lowp owermode( void ) { cs = 0 ; while (miso); w_trw - 24c - byte( 0x36 ); cs = 1 ; config - trw - 24c - byte( 0x00,0x6f); cs = 0 ; while (miso); w_trw - 24c - byte( 0x39 ); cs = 1 ; } /* ***************************************************************** ********** */ void init_mcu_status ( void ) { p1mdout = 0x4b ; p2mdout = 0x01 ; p1 = 0xf4 ; xbr1 = 0x40 ; oscicn |= 0x03 ; // operating frequency is 24m } /* *************************************************************************** */
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 22 /* function name main func tion */ /* mcu body c8051f32x */ /* input no */ /* return no */ /* *************************************************************************** */ void main( void ) { unsigned int x; unsigned char i; pca0md = 0x00 ; for (x = 0 ;x < 30000 ;x ++ ); init_mcu_status(); res et - trw - 24c(); config - trw - 24c(); for (x = 0 ;x < 1000 ;x ++ ); while ( 1 ) { trw - 24c - send - dat a( 90 ); trw - 24c - rxmode(); for (x = 0 ;x < 60000 ;x ++ ) trw - 24c - receive - dat a(); } } const unsigned char code trw_24c_table[ 68 ] = { 0x0d , 0x5c , // 2.4k 2 - fsk 2410m 0x0e , 0x4e , 0x0f , 0xc5 , 0x 0b , 0x08 , 0x0c , 0x00 , 0x10 , 0x86 , 0x11 , 0x83 , 0x12 , 0x03 , 0x13 , 0x43 , 0x14 , 0x3b , 0x0a , 0x00 , 0x15 , 0x44 , 0x22 , 0x10 , 0x21 , 0x56 ,
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 23 0x18 , 0x08 , 0x19 , 0x16 , 0x1a , 0x6c , 0x1b , 0x03 , 0x1c , 0x40 , 0x1d , 0x91 , 0x23 , 0xa9 , 0x24 , 0x0a , 0x25 , 0x00 , 0x26 , 0x11 , 0x29 , 0x59 , 0x2c , 0x81 , 0x2d , 0x35 , 0x2e , 0x0b , 0x08 , 0x05 , 0x07 , 0x04 , 0x02 , 0x06 , 0x00 , 0x1b , 0x09 , 0x00 , 0x06 , 0xff /* 0x0d,0x5c, ; 250k msk 2410 0x0e,0xb1, 0x0f,0x3b, 0x0b,0x09, 0x0c,0x00, 0x10,0x2d, 0x11,0x3b, 0x12,0x73, 0x13,0x32, 0x14,0xf8, 0x0a,0x00, 0x15,0x01, 0x22,0x10, 0x21,0x56, 0 x18,0x08, 0x19,0x1d, 0x1a,0x1c, 0x1b,0xc7, 0x1c,0x00,
http : //www.wenshing.com.tw ; http://www.rf.net.tw trw - 24c data s heet p. 24 0x1d,0xb2, 0x23,0xea, 0x24,0x0a, 0x25,0x00, 0x26,0x11, 0x29,0x59, 0x2c,0x88, 0x2d,0x31, 0x2e,0x0b, 0x08,0x05, 0x07,0x04, 0x02,0x06, 0x00,0x1b, 0x09,0x00, 0x06,0xff */ };


▲Up To Search▲   

 
Price & Availability of TRW-24C

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X